﻿/***********************************************************************
 * <copyright file="UserDto.cs" company="B/S JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@newman.vn
 * Website:
 * Create Date: Saturday, March 29, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Runtime.Serialization;
using System;
using System.Collections.Generic;

namespace SecurityService.DataTransferObjects
{
    /// <summary>
    /// User Data tranfer object
    /// </summary>
    [DataContract(Name = "UserDto", Namespace = "http://www.yourcompany.com/types/")]
    public class UserDto
    {
        /// <summary>
        /// Gets or sets the user identifier.
        /// </summary>
        /// <value>
        /// The user identifier.
        /// </value>
        [DataMember]
        public int UserId { get; set; }

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        [DataMember]
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets the password.
        /// </summary>
        /// <value>
        /// The password.
        /// </value>
        [DataMember]
        public string Password { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [is active].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [is active]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool IsActive { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [is approved].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [is approved]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool IsApproved { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [is blocked].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [is blocked]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool IsBlocked { get; set; }

        /// <summary>
        /// Gets or sets the last activity date.
        /// </summary>
        /// <value>
        /// The last activity date.
        /// </value>
        [DataMember]
        public DateTime? LastActivityDate { get; set; }

        /// <summary>
        /// Gets or sets the full name.
        /// </summary>
        /// <value>
        /// The full name.
        /// </value>
        [DataMember]
        public string FullName { get; set; }

        /// <summary>
        /// Gets or sets the email.
        /// </summary>
        /// <value>
        /// The email.
        /// </value>
        [DataMember]
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the address.
        /// </summary>
        /// <value>
        /// The address.
        /// </value>
        [DataMember]
        public string Address { get; set; }

        /// <summary>
        /// Gets or sets the created dateg.
        /// </summary>
        /// <value>
        /// The created dateg.
        /// </value>
        [DataMember]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Gets or sets the unit identifier.
        /// </summary>
        /// <value>
        /// The unit identifier.
        /// </value>
        [DataMember]
        public long UnitId { get; set; }

        /// <summary>
        /// Gets or sets the roles.
        /// </summary>
        /// <value>
        /// The roles.
        /// </value>
        [DataMember]
        public IList<RoleDto> Roles { get; set; }
    }
    /// <summary>
    /// RecoverDto
    /// </summary>
    [DataContract(Name = "RecoverDto", Namespace = "http://www.yourcompany.com/types/")]
    public class RecoverPasswordDto
    {
        /// <summary>
        /// Gets or sets the user identifier.
        /// </summary>
        /// <value>
        /// The user identifier.
        /// </value>
        [DataMember]
        public string Email { get; set; }

        /// <summary>
        /// Gets or sets the unit identifier.
        /// </summary>
        /// <value>
        /// The unit identifier.
        /// </value>
        [DataMember]
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets the verify.
        /// </summary>
        /// <value>
        /// The verify.
        /// </value>
        [DataMember]
        public string Verify { get; set; }
    }
}
